{"ast":null,"code":"var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport CheckOutlined from \"@ant-design/icons/es/icons/CheckOutlined\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport classNames from 'classnames';\nimport RcSteps from 'rc-steps';\nimport * as React from 'react';\nimport Tooltip from '../tooltip';\nimport { ConfigContext } from '../config-provider';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport Progress from '../progress';\nimport useLegacyItems from './useLegacyItems';\nimport useStyle from './style';\nconst Steps = props => {\n  const {\n      percent,\n      size,\n      className,\n      direction,\n      items,\n      responsive = true,\n      current = 0,\n      children\n    } = props,\n    restProps = __rest(props, [\"percent\", \"size\", \"className\", \"direction\", \"items\", \"responsive\", \"current\", \"children\"]);\n  const {\n    xs\n  } = useBreakpoint(responsive);\n  const {\n    getPrefixCls,\n    direction: rtlDirection\n  } = React.useContext(ConfigContext);\n  const realDirectionValue = React.useMemo(() => responsive && xs ? 'vertical' : direction, [xs, direction]);\n  const prefixCls = getPrefixCls('steps', props.prefixCls);\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const isInline = props.type === 'inline';\n  const iconPrefix = getPrefixCls('', props.iconPrefix);\n  const mergedItems = useLegacyItems(items, children);\n  const mergedPercent = isInline ? undefined : percent;\n  const stepsClassName = classNames({\n    [`${prefixCls}-rtl`]: rtlDirection === 'rtl',\n    [`${prefixCls}-with-progress`]: mergedPercent !== undefined\n  }, className, hashId);\n  const icons = {\n    finish: /*#__PURE__*/React.createElement(CheckOutlined, {\n      className: `${prefixCls}-finish-icon`\n    }),\n    error: /*#__PURE__*/React.createElement(CloseOutlined, {\n      className: `${prefixCls}-error-icon`\n    })\n  };\n  const stepIconRender = _ref => {\n    let {\n      node,\n      status\n    } = _ref;\n    if (status === 'process' && mergedPercent !== undefined) {\n      // currently it's hard-coded, since we can't easily read the actually width of icon\n      const progressWidth = size === 'small' ? 32 : 40;\n      // iconWithProgress\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: `${prefixCls}-progress-icon`\n      }, /*#__PURE__*/React.createElement(Progress, {\n        type: \"circle\",\n        percent: mergedPercent,\n        width: progressWidth,\n        strokeWidth: 4,\n        format: () => null\n      }), node);\n    }\n    return node;\n  };\n  const itemRender = (item, stepItem) => item.description ? /*#__PURE__*/React.createElement(Tooltip, {\n    title: item.description\n  }, stepItem) : stepItem;\n  return wrapSSR( /*#__PURE__*/React.createElement(RcSteps, Object.assign({\n    icons: icons\n  }, restProps, {\n    current: current,\n    size: size,\n    items: mergedItems,\n    itemRender: isInline ? itemRender : undefined,\n    stepIcon: stepIconRender,\n    direction: realDirectionValue,\n    prefixCls: prefixCls,\n    iconPrefix: iconPrefix,\n    className: stepsClassName\n  })));\n};\nSteps.Step = RcSteps.Step;\nexport default Steps;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","CheckOutlined","CloseOutlined","classNames","RcSteps","React","Tooltip","ConfigContext","useBreakpoint","Progress","useLegacyItems","useStyle","Steps","props","percent","size","className","direction","items","responsive","current","children","restProps","xs","getPrefixCls","rtlDirection","useContext","realDirectionValue","useMemo","prefixCls","wrapSSR","hashId","isInline","type","iconPrefix","mergedItems","mergedPercent","undefined","stepsClassName","icons","finish","createElement","error","stepIconRender","_ref","node","status","progressWidth","width","strokeWidth","format","itemRender","item","stepItem","description","title","assign","stepIcon","Step"],"sources":["/data/messenger.client/node_modules/antd/es/steps/index.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport CheckOutlined from \"@ant-design/icons/es/icons/CheckOutlined\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport classNames from 'classnames';\nimport RcSteps from 'rc-steps';\nimport * as React from 'react';\nimport Tooltip from '../tooltip';\nimport { ConfigContext } from '../config-provider';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport Progress from '../progress';\nimport useLegacyItems from './useLegacyItems';\nimport useStyle from './style';\nconst Steps = props => {\n  const {\n      percent,\n      size,\n      className,\n      direction,\n      items,\n      responsive = true,\n      current = 0,\n      children\n    } = props,\n    restProps = __rest(props, [\"percent\", \"size\", \"className\", \"direction\", \"items\", \"responsive\", \"current\", \"children\"]);\n  const {\n    xs\n  } = useBreakpoint(responsive);\n  const {\n    getPrefixCls,\n    direction: rtlDirection\n  } = React.useContext(ConfigContext);\n  const realDirectionValue = React.useMemo(() => responsive && xs ? 'vertical' : direction, [xs, direction]);\n  const prefixCls = getPrefixCls('steps', props.prefixCls);\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const isInline = props.type === 'inline';\n  const iconPrefix = getPrefixCls('', props.iconPrefix);\n  const mergedItems = useLegacyItems(items, children);\n  const mergedPercent = isInline ? undefined : percent;\n  const stepsClassName = classNames({\n    [`${prefixCls}-rtl`]: rtlDirection === 'rtl',\n    [`${prefixCls}-with-progress`]: mergedPercent !== undefined\n  }, className, hashId);\n  const icons = {\n    finish: /*#__PURE__*/React.createElement(CheckOutlined, {\n      className: `${prefixCls}-finish-icon`\n    }),\n    error: /*#__PURE__*/React.createElement(CloseOutlined, {\n      className: `${prefixCls}-error-icon`\n    })\n  };\n  const stepIconRender = _ref => {\n    let {\n      node,\n      status\n    } = _ref;\n    if (status === 'process' && mergedPercent !== undefined) {\n      // currently it's hard-coded, since we can't easily read the actually width of icon\n      const progressWidth = size === 'small' ? 32 : 40;\n      // iconWithProgress\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: `${prefixCls}-progress-icon`\n      }, /*#__PURE__*/React.createElement(Progress, {\n        type: \"circle\",\n        percent: mergedPercent,\n        width: progressWidth,\n        strokeWidth: 4,\n        format: () => null\n      }), node);\n    }\n    return node;\n  };\n  const itemRender = (item, stepItem) => item.description ? /*#__PURE__*/React.createElement(Tooltip, {\n    title: item.description\n  }, stepItem) : stepItem;\n  return wrapSSR( /*#__PURE__*/React.createElement(RcSteps, Object.assign({\n    icons: icons\n  }, restProps, {\n    current: current,\n    size: size,\n    items: mergedItems,\n    itemRender: isInline ? itemRender : undefined,\n    stepIcon: stepIconRender,\n    direction: realDirectionValue,\n    prefixCls: prefixCls,\n    iconPrefix: iconPrefix,\n    className: stepsClassName\n  })));\n};\nSteps.Step = RcSteps.Step;\nexport default Steps;"],"mappings":"AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC,EAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CAAC,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;EAChG,IAAIH,CAAC,IAAI,IAAI,IAAI,OAAOI,MAAM,CAACK,qBAAqB,KAAK,UAAU,EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEP,CAAC,GAAGC,MAAM,CAACK,qBAAqB,CAACT,CAA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